#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
motifs_common_01 (motifs 09)
23 de septiembre de 2008
"""
#
AMINOACIDS = "ACDEFGHIKLMNPQRSTVWYstyX"

#frecuencia en vertebrados
#http://www.tiem.utk.edu/bioed//webmodules/aminoacids.htm
prob_aa =  {'G':0.074, 'A':0.074, 'S':0.081,
            'P':0.050, 'V':0.068, 'T':0.062,
            'C':0.033, 'X':0.050, 'N':0.044,
            'D':0.059, 'Q':0.037, 'K':0.072,
            'E':0.058, 'M':0.018, 'H':0.029,
            'm':0.018, 'F':0.040, 'R':0.042,
            'c':0.033, 'Y':0.033, 's':0.081,
            't':0.062, 'W':0.013, 'y':0.033,
            'L':0.076, 'I':0.038
            }

TEXTFROMFILE = ("""

                             Frecuency Data read from "frecuencias.txt".
        
                             Para datos de frecuencia defecto (Vertebrados),
                             cambia el nombre del archivo por otro cualquiera
                                     o marca con # las lineas en el archivo
                        """
                        )
                        
TEXTDEFAULT  = ("""
                            Datos de frecuencia de aminoacidos para Vertebrados
                        "http://www.tiem.utk.edu/bioed//webmodules/aminoacids.htm"
            
                Para datos de frecuencia diferentes utiliza un archivo "frecuencias.txt"
                        conteniendo lineas del tipo C:0.11 (aminoacido:frecuencia).
                         Utiliza la clave 'name' antes de las lineas de aminoacidos
                             para indicar el origen de la tabla (pe. name:rana).
    Si no se indica un aminoacido se utilizara por defecto su frecuencia en Vertebrados.
         Inicia cualquier linea con # para poner comentarios que no se leeran o
                    para evitar que se lea el valor de un determinado aminoacido"""
                        )
                        
ICON = """AAABAAEAICAAAAEACACoCAAAFgAAACgAAAAgAAAAQAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAkqb7AGWA+ACNovsAEjblADFAwwA6QrgANEG/ACY8zgAROOoAIzzSAE5HngBcS4wA
VEmYAEFErgARN+YAEjjqACI71ABuT3YAhVVaAJ9cOQCRWEoAKT3LABY97AAAzf8AJDzRAItXUQCr
XyoAm1o9AHRQbgAtPscAAAD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